<div class="infoBlock">
<div class="infoBlockHeading"><span class="t">Detail</span></div>
<div class="infoBlockContent">

<div class="infoBlockItem">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
  <tr>
    <td width="100" align="right" valign="top"><label class="fb">Name</label>: </td>
    <td>{pp_text name="field_name" value=$CONTENT.item.name class="inputText2" require="true"}</td>
    <td></td>
  </tr>
  <tr>
    <td align="right" valign="top"><label class="fb">Description</label>: </td>
    <td>{pp_textarea name="field_description" value=$CONTENT.item.description cols="40" rows="4" require="true"}</td>
    <td></td>
  </tr>
  <tr>
    <td align="right" valign="top"><label class="fb">Category</label>: </td>
    <td>{pp_inputoptions name="field_cid" options=$CONTENT.categories_options selected=$CONTENT.item.cid style="Default" disabled="disabled"}
    <a href="?op=toaddcategory">Category</a>
    </td>
    <td></td>
  </tr>
  <tr>
    <td align="right" valign="top"><label class="fb">Total</label>: </td>
    <td>{$CONTENT.item.total}</td>
    <td></td>
  </tr>
</table>
</div>

<div class="breakline">&nbsp;</div>
<div class="line">&nbsp;</div>
<div class="infoBlockItem">
<h3>Vote Items</h3>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="listBox">
  <tr class="listBoxHeading">
    <td>{pp_inputcheckboxall name="sla" values=""}</td>
    <td>Name</td>
    <td>Count</td>
    <td>Action</td>
  </tr>
{section name=item loop=$CONTENT.vote_items}
  <tr>
    <td>{pp_inputcheckbox value=$CONTENT.vote_items[item].id}</td>
    <td>{$CONTENT.vote_items[item].name} </td>
    <td>{$CONTENT.vote_items[item].count} </td>
    <td></td>
  </tr>
{sectionelse}
  <tr>
    <td colspan="8"></td>
  </tr>
{/section}
</table>
<a href="{$CONTEXT.ADMINURL}vote?op=add&sid={$CONTENT.item.id}" class="btn">Add Vote</a>
</div>

<div class="breakline">&nbsp;</div>
<div class="line">&nbsp;</div>
<div class="infoBlockItem">
<h3>Vote History</h3>
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="listBox">
  <tr class="listBoxHeading">
    <td>{pp_inputcheckboxall name="sla" values=""}</td>
    <td>Name</td>
    <td>Time</td>
    <td>IP Address</td>
    <td>Action</td>
  </tr>
{section name=item loop=$CONTENT.history_items}
  <tr>
    <td>{pp_inputcheckbox value=$CONTENT.history_items[item].id}</td>
    <td>{$CONTENT.history_items[item].username}</td>
    <td>{$CONTENT.history_items[item].time|time}</td>
    <td>{$CONTENT.history_items[item].ip_address}</td>
    <td><a href="?op=detail&id={$CONTENT.history_items[item].id}">Detail</a>&nbsp;<a href="?op=data&id={$CONTENT.history_items[item].id}">Data</a>&nbsp;<a href="?op=edit&id={$CONTENT.history_items[item].id}">Edit</a>&nbsp;<a href="javascript:void(0);" onclick="PJS.list.delchkgo('?op=dodelete&id={$CONTENT.history_items[item].id}');">Delete</a></td>
  </tr>
{sectionelse}
  <tr>
    <td colspan="8"></td>
  </tr>
{/section}
</table>
</div>

</div>
</div>